const install = (Vue) => {
  /**
   * 
   * @param {String} title 提示文字
   * @param {String} icon = [none|success|loading] 图标
   * @param {Number} duration 持续时间
   */
  Vue.prototype.$toast = (title, icon = 'none', duration = 1000) => {
    uni.showToast({
      title,
      icon,
      duration
    })
  }
}

export default {
  install
}